<?php
class ModelNewsType extends Model {
	public function getNewsTypes(){
		$sql  = "SELECT * FROM " . DB_PREFIX . "news_type nt";
		$sql .= "	LEFT JOIN " . DB_PREFIX . "news_type_description ntd ON (nt.type_id = ntd.type_id)";
		$sql .= " WHERE status = '1' AND language_id = '". (int)$this->config->get('config_language_id') ."'";
		$sql .= " ORDER BY sort_order";
		
		$query = $this->db->query($sql);
		return $query->rows;
	}
}
?>